﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberCardDetail.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.MemberCard.MemberCardDetail" %>


<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/Shop/MemberCard/MemberCardDetail.aspx">
     <script type="text/javascript">
         function SelKind() {
             if ($("#slt_kind").val() == "timecard") {
                 $("#dl_time").css("display", "block");
                 $("#dl_cash").css("display", "none");
             } else if ($("#slt_kind").val() == "cashcard") {
                 $("#dl_time").css("display", "none");
                 $("#dl_cash").css("display", "block");
             }
             else if ($("#slt_kind").val() == "normalcard") {
                 $("#dl_time").css("display", "none");
                 $("#dl_cash").css("display", "none");
             }
         }
    </script>
    <div class="pageContent">
    
    <div class="pageFormContent" layoutH="60">
		     <dl class="nowrap">
            <dt>会员卡号：</dt>
            <dd>  
                       <asp:textbox runat="server" id="txt_card_no" name="CardNo" class="required" ></asp:textbox>
            </dd>
        </dl> 
        <% if (cardRight != null)
           { %>
          <dl class="nowrap">
            <dt>子卡号：</dt>
            <dd>  
                <%= cardRight.SubCardNo%>     
            </dd>
        </dl>
        <%} %>
          <dl class="nowrap">
            <dt>会员卡项目：</dt>
            <dd>
                 <asp:dropdownlist runat="server" id="ddl_member_card_item" ></asp:dropdownlist>
            </dd>
        </dl>    
        <dl class="nowrap">
            <dt>类型：</dt>
            <dd>
            <asp:DropDownList runat="server" id="ddl_member_card_kind"></asp:DropDownList>
            </dd>
        </dl>    
        <dl class="nowrap">
            <dt>标题：</dt>
            <dd>
             <asp:textbox runat="server" id="txt_title" name="Title" class="required"></asp:textbox>      
            </dd>
        </dl>    
           <dl class="nowrap" id="dl_time" style="<%= (cardRight==null?"":cardRight.Kind)=="timecard"?"display:block;":"display:none;"  %>">
            <dt>次数：</dt>
            <dd>
              <asp:textbox runat="server"  width="150px" class="required;number" name="Times" id="txt_times" >0</asp:textbox>
            <span class="info"></span></dd>
              </dl>
               <dl class="nowrap" id="dl_cash"  style='<%= (cardRight==null?"":cardRight.Kind)=="cashcard"?"display:block;":"display:none;"  %>'>
            <dt>金额：</dt>
            <dd>
            <asp:textbox runat="server"  width="150px" class="required;number"  name="Balance" id="txt_balance" >0</asp:textbox>
            <span class="info"></span></dd>
              </dl> 
               <dl class="nowrap">
            <dt>有效期：</dt>
            <dd>  <table border="0" cellspacing="0" cellpadding="0">
            	<tr>
            		<td>
                      <asp:textbox runat="server" id="txt_startdate"  width="150px" name="StartDate"  class="required date"  format="yyyy-MM-dd"></asp:textbox>   
                    <a class="inputDateButton" href="javascript:;">选择</a><span class="info"></span>
                    </td>
                    <td>至</td>
                    <td>  
                    <asp:textbox runat="server" id="txt_enddate"  width="150px" name="EndDate"  class="required date"  format="yyyy-MM-dd"></asp:textbox>   
                    <a class="inputDateButton" href="javascript:;">选择</a><span class="info"></span>
                    
                    </td>
            </table></dd>
              </dl>  
              <dl class="nowrap">
            <dt>描述：</dt>
            <dd>
            <textarea id="txt_decs" runat="server" name="Description" cols="60" rows="4" class=""></textarea>

            </dd
        </dl>   
      
	</div>
	
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="$('#submit_op', navTab.getCurrentPanel()).val('0');" type="submit">保存</button></div></div>
            </li>
	
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
    
    </div>
    </form>